<?php

			//session类
			class SessionModel extends Model{
				

				//构造方法
				public function __construct(){
					//调用父类的构造方法
					parent :: __construct();
					//注册
					session_set_save_handler(
						array($this,'sess_open'),
						array($this,'sess_close'),
						array($this,'sess_read'),
						array($this,'sess_write'),
						array($this,'sess_destroy'),
						array($this,'sess_gc')
						);
					
				}
				
				
			}
